package common;

import java.util.Date;

public class Colum {

    private String name;
    private Object value;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getValue() {
        return value;
    }

    public String getStringValue() {
        if (value instanceof String) {
            return (String) value;
        }
        return null;
    }

    public Date getDateValue() {
        if (value instanceof Date) {
            return (Date) value;
        }
        return null;
    }

    public void setValue(Object value) {
        this.value = value;
    }
}
